<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="jakarta.tags.core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <base href="<%=request.getContextPath()%>/">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>新闻发布系统后台</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
  <link rel="stylesheet" href="statics/css/newsStyle.css">
</head>
<body>
<!-- 侧边栏 -->
<%@include file="../common/sidebar.jsp"%>
<!-- 主内容区域 -->
<div class="main-content">
  <!-- 顶部导航 -->
  <%@include file="../common/top.jsp"%>
  <!-- 内容区域 -->
  <div class="content">
    <form id="newsAddForm" method="post" action="admin/add" enctype="multipart/form-data">
      <div class="card" style="margin-top: 30px;">
        <h2 class="section-title">新增管理员</h2>

        <div class="form-group">
          <label for="userName">登录名称</label>
          <input type="text" id="userName" class="form-control" name="username" placeholder="输入登录名称" required>
        </div>
        <div class="form-group">
          <label for="userPassword">登录密码</label>
          <input type="password" id="userPassword" class="form-control" name="userpwd" placeholder="输入登录密码" required>
         </div>

        <div class="form-group">
          <label for="email">邮箱</label>
          <input type="text" id="email" class="form-control" name="email" placeholder="输入邮箱">
        </div>

        <div class="form-group">
          <label for="phone">电话</label>
          <input type="text" id="phone" class="form-control" name="phone" placeholder="输入联系电话">
        </div>

        <div class="form-group">
          <label for="headPic">头像</label>
          <input type="file" id="headPic" class="form-control" name="file" accept=".png,.jpg,.gif" placeholder="选择头像">
        </div>

        <div style="display: flex; gap: 10px;">
          <button class="btn btn-primary" type="submit" >新增管理员</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
</html>